import request from '@/utils/request'
// 项目-列表
export function getList(data) {
  return request({
    url: 'biz/goods/list',
    method: 'get',
    params: data
  })
}
// 项目-详情
export function getDetail(id) {
  return request({
    url: 'biz/goods/'+id,
    method: 'get'
  })
}
// 项目-增
export function getAdd(data) {
  return request({
    url: 'biz/goods',
    method: 'post',
    data
  })
}
// 项目-删
export function del(ids) {
  return request({
    url: 'biz/goods',
    method: 'delete',
    data: ids
  })
}
// 项目-改
export function getUpdate(data) {
  return request({
    url: 'biz/goods',
    method: 'put',
    data
  })
}
// 项目-审核
export function detailCheck(data) {
  return request({
    url: 'biz/goods/check',
    method: 'post',
    data
  })
}
// 项目-审核记录
export function detailRecords(id) {
  return request({
    url: 'biz/goods/records?id='+id,
    method: 'get',
  })
}
// 项目-上下架
export function detailUpDown(data) {
  return request({
    url: 'biz/goods/upDown',
    method: 'post',
    data
  })
}
// 项目-修改类目
export function detailUpdateCats(data) {
  return request({
    url: 'biz/goods/updateCats',
    method: 'post',
    data
  })
}
export default { getAdd, getUpdate, del, getList, getDetail, detailCheck, detailRecords, detailUpDown, detailUpdateCats}